home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 4
/
Apprentice-Release4.iso
/
Languages
/
Caml Light 0.7
/
Caml Light 0.7 source
/
src
/
tools
/
Makefile
< prev
next >
Wrap
Makefile
|
1995-07-05
|
2KB
|
64 lines
CAMLCOMP = ::camlrun ::camlcomp -W -stdlib ::lib:
CAMLLINK = ::camlrun ::camllink -stdlib ::lib:
CAMLLEX = ::camlrun ::camllex
INCLUDES = -I ::compiler: -I ::linker:
COMPFLAGS = -O fast {INCLUDES}
LINKFLAGS = -g {INCLUDES}
all ƒ dumpsymb cldumpobj findmsgs clprepro
clprepro ƒ clprepro.68k.o clprepro.PPC.o
{LINK68k} {LINKTOOL68k} -sym on -c 'MPS ' -t MPST -o clprepro68k ∂
{TOOLLIBS68k} clprepro.68k.o
{LINKPPC} -c 'MPS ' -t MPST -sym on -o clpreproPPC {TOOLLIBSPPC} ∂
clprepro.PPC.o
set ppcsize `count -c clpreproPPC`
if {ppcsize}
rez -a -d PPC_CODE_SIZE={ppcsize} cfrg.r -o clpreproPPC
end
:fatmerge :clpreproPPC :clprepro68k :clprepro
dumpsymb ƒ dumpsymb.zo
{CAMLLINK} {LINKFLAGS} -o dumpsymb stdlib.zo dumpsymb.zo
cldumpobj ƒ opnames.zo dumpobj.zo
{CAMLLINK} {LINKFLAGS} -o cldumpobj stdlib.zo opcodes.zo opnames.zo dumpobj.zo
findmsgs ƒ scanmsgs.zo findmsgs.zo
{CAMLLINK} {LINKFLAGS} -o findmsgs stdlib.zo scanmsgs.zo findmsgs.zo
.zo ƒ .ml
{CAMLCOMP} {COMPFLAGS} {Default}.ml
opnames.ml ƒ ::runtime:instruct.h
duplicate -y ::runtime:instruct.h opnames.ml
set casesensitive 1
open opnames.ml
find • opnames.ml; clear -c ∞ /•≈'/*'≈∂n/ opnames.ml
find • opnames.ml; replace -c ∞ /enum ([a-z_]+)®0≈/ "let names_of_®0 = [|" opnames.ml
find • opnames.ml; replace -c ∞ /'};'∞/ '|];;' opnames.ml
find • opnames.ml; replace -c ∞ /([A-Z][A-Z_0-9]*)®0/ '"®0"' opnames.ml
find • opnames.ml; replace -c ∞ /,/ ';' opnames.ml
close -y opnames.ml
scanmsgs.ml ƒ scanmsgs.mll
{CAMLLEX} scanmsgs.mll
.68k.o ƒ .c
{C68k} {Default}.c -o {default}.68k.o -s {Default}
.PPC.o ƒ .c
{CPPC} {default}.c -o {default}.PPC.o
clean ƒ
delete -i cldumpobj dumpsymb opnames.ml findmsgs scanmsgs.ml clprepro ∂
clprepro68k clprepro68k.SYM clpreproPPC clpreproPPC.xSYM
delete -i ≈.z[io] ||echo
delete -i ≈.o ||echo
gensrc depend ƒ
#
install ƒ
duplicate -y ppclink-makepef "{BINDIR}"